import yRequest from "../request"

/**
 * @description: 查询政策列表
 */
export function queryPolicy(data = {}, config = {}) {
  return yRequest.post("queryPolicy", "/policy/info/list", data, config)
}

/**
 * @description: 查询政策详情
 */
export function queryPolicyInfo(data = {}, config = {}) {
  return yRequest.post("queryPolicyInfo", "/policy/info/get", data, config)
}

/**
 * 查询新闻列表
 * @param data
 * @param config
 * @returns {*}
 */
export function queryNews(data = {}, config = {}) {
  return yRequest.post("queryNews", "/news/info/list", data, config)
}

/**
 * 查询新闻详情
 * @param data
 * @param config
 * @returns {*}
 */
export function queryNewsInfo(data = {}, config = {}) {
  return yRequest.post("queryNewsInfo", "/news/info/get", data, config)
}
